/**
* Change the path to your folder.
*
* This must be the full path from the root of your
* web space. If you're not sure what it is, ask your host.
*
* Name this file index.php and place in the directory.
*/
function get_file_extension($file_name)
{
return substr(strrchr($file_name,'.'),1);
}
// Define the full path to your folder from root
$path = "/kunden/homepages/44/d279465428/htdocs/Protos/";
// Open the folder
$dir_handle = @opendir($path) or die("Unable to open $path");
// Loop through the files
while ($file = readdir($dir_handle)) {
if($file == "." || $file == ".." || $file == "index.php" || get_file_extension($file) != "htm")
continue;
echo "$file
";
";
}
// Close
closedir($dir_handle);
?>
